package com.shievy.anweb.common.utli

import android.view.View

/**
 * 隐藏View
 * */
fun View.gone() {
    visibility = View.GONE

}

/**
 * 显示View
 * */
fun View.visible() {
    visibility = View.VISIBLE

}

/**
 * 隐藏/显示 View
 * @param isShow true 显示View  false 隐藏View
 * */
fun View.visibility(isShow: Boolean = true) {
    if (isShow) visible() else gone()
}